<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        //声明函数
        function foo() {
            console.log('foo..');
        }


    </script>

</head>
<body>

</body>
</html>